#include<bits/stdc++.h>

using namespace std;

void solve()
{
    int n,a,b,x;
    cin>>n>>a>>b;
    if(a>b) swap(a,b);
    x=__gcd(a,b);
    int cnt=0;
    for(int i=a-x;i>=1;i-=x)    cnt++;
    for(int i=a+x;i<=b-x;i+=x)    cnt++;
    for(int i=b+x;i<=n;i+=x)    cnt++;
    int flag=0;
    if(cnt%2==0)
     flag=0;
    else   flag=1;
    if(flag)
    cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        solve();
    }
}
